package com.eclipse.e0113_网络编程.模拟浏览器发送请求;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
	static int port = 8081;
	public static void main(String[] args) throws IOException {
		ServerSocket server = new ServerSocket(port);
		Socket socket = server.accept();
		InputStream inputStream = socket.getInputStream();
		BufferedReader in = new BufferedReader(new InputStreamReader(inputStream));
		OutputStream outputStream = socket.getOutputStream();
		BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outputStream));
		
		
	}
}
